const KEY = 'heimamm_token'

// 设置token
const setToken = (token: string) => {
  localStorage.setItem(KEY, token)
}

// 获取token
const getToken = () => {
  return localStorage.getItem(KEY)
}

// 删除token
const removeToken = () => {
  localStorage.removeItem(KEY)
}

export { setToken, getToken, removeToken }
